<template>
  <div class="home">
    <div class="home-header">
      <h1 class="home-slogan">开启AI智能新时代</h1>
      <p class="home-subtitle">Oliver AI 智能助手平台 · 让AI助力你的每一天</p>
    </div>
    <div v-for="n in 20" :key="n" class="snowflake"></div>
    <div class="hero-section">
      <div class="hero-guide">选择你的AI助手，体验前沿智能服务</div>
      <div class="card-container">
        <div class="app-card" @click="$router.push('/love-master')">
          <div class="card-content">
            <div class="icon">
              <svg viewBox="0 0 24 24" class="heart-icon">
                <path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/>
              </svg>
            </div>
            <h2>AI 恋爱大师</h2>
            <p>智能情感咨询助手，为您解答情感困惑</p>
            <div class="card-tags">
              <span class="card-tag">智能情感洞察</span>
              <span class="card-tag">专属恋爱锦囊</span>
              <span class="card-tag">秒级互动体验</span>
            </div>
            <button class="card-btn" @click.stop="$router.push('/love-master')">立即体验</button>
          </div>
        </div>
        <div class="app-card" @click="$router.push('/super-agent')">
          <div class="card-content">
            <div class="icon">
              <svg viewBox="0 0 24 24" class="brain-icon">
                <path d="M13 3c3.88 0 7 3.14 7 7 0 2.8-1.63 5.19-4 6.31V21H8v-4.69C5.64 15.19 4 12.8 4 10c0-3.86 3.12-7 7-7m0-2C8.04 1 4 5.04 4 10c0 3.31 2.19 6.11 5.21 7.01V23h5.58v-5.99C17.81 16.11 20 13.31 20 10c0-4.96-4.04-9-9-9z"/>
              </svg>
            </div>
            <h2>AI 超级智能体</h2>
            <p>全能AI助手，解答您的各类问题</p>
            <div class="card-tags">
              <span class="card-tag">多步推理·深度思考</span>
              <span class="card-tag">智能工具·高效分析</span>
              <span class="card-tag">复杂难题·一键解决</span>
            </div>
            <button class="card-btn" @click.stop="$router.push('/super-agent')">立即体验</button>
          </div>
        </div>
      </div>
    </div>

    <footer class="footer">
      <div class="footer-content">
        <div class="footer-logo">
          <span class="footer-logo-text">AI智能助手</span>
        </div>
        <div class="footer-links">
          <a href="#" class="footer-link">关于我们</a>
          <a href="#" class="footer-link">使用条款</a>
          <a href="#" class="footer-link">隐私政策</a>
          <a href="#" class="footer-link">联系我们</a>
        </div>
        <div class="footer-social">
          <a href="#" class="social-link">
            <i class="fab fa-weixin"></i>
          </a>
          <a href="#" class="social-link" target="_blank">
            <i class="fab fa-weibo"></i>
          </a>
          <a href="https://gitee.com/wen-jinzhao/oliver-ai-agent" class="social-link" target="_blank">
            <i class="fab fa-github"></i>
          </a>
        </div>
        <!-- <div class="footer-contact">
          <span>商务合作/交流群：<a href="mailto:contact@oliverai.com" class="footer-link">contact@oliverai.com</a></span>
        </div>
        <div class="footer-copyright">
          <p>© {{ new Date().getFullYear() }} AI智能助手. 保留所有权利</p>
          <p>由 Oliver AI Team 倾情打造</p>
        </div> -->
      </div>
    </footer>
  </div>
</template>

<script setup>
</script>

<style scoped>
.home {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0;
  width: 100%;
}

.home::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 255, 255, 0.03) 0px,
    rgba(0, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 10px
  );
  animation: bg-scroll 20s linear infinite;
}

@keyframes bg-scroll {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes snowfall {
  0% {
    transform: translateY(-10vh) translateX(0);
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(100vh) translateX(20px);
    opacity: 0;
  }
}

.snowflake {
  position: fixed;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  opacity: 0.3;
  animation: snowfall linear infinite;
}

.snowflake:nth-child(1) { left: 5%; animation-duration: 10s; animation-delay: -2s; }
.snowflake:nth-child(2) { left: 10%; animation-duration: 12s; animation-delay: -1s; }
.snowflake:nth-child(3) { left: 15%; animation-duration: 8s; animation-delay: -3s; }
.snowflake:nth-child(4) { left: 20%; animation-duration: 15s; animation-delay: -4s; }
.snowflake:nth-child(5) { left: 25%; animation-duration: 11s; animation-delay: -5s; }
.snowflake:nth-child(6) { left: 30%; animation-duration: 13s; animation-delay: -1.5s; }
.snowflake:nth-child(7) { left: 35%; animation-duration: 9s; animation-delay: -2.5s; }
.snowflake:nth-child(8) { left: 40%; animation-duration: 14s; animation-delay: -3.5s; }
.snowflake:nth-child(9) { left: 45%; animation-duration: 10s; animation-delay: -4.5s; }
.snowflake:nth-child(10) { left: 50%; animation-duration: 12s; animation-delay: -2.8s; }
.snowflake:nth-child(11) { left: 55%; animation-duration: 8s; animation-delay: -1.8s; }
.snowflake:nth-child(12) { left: 60%; animation-duration: 15s; animation-delay: -3.8s; }
.snowflake:nth-child(13) { left: 65%; animation-duration: 11s; animation-delay: -4.8s; }
.snowflake:nth-child(14) { left: 70%; animation-duration: 13s; animation-delay: -2.3s; }
.snowflake:nth-child(15) { left: 75%; animation-duration: 9s; animation-delay: -3.3s; }
.snowflake:nth-child(16) { left: 80%; animation-duration: 14s; animation-delay: -4.3s; }
.snowflake:nth-child(17) { left: 85%; animation-duration: 10s; animation-delay: -1.3s; }
.snowflake:nth-child(18) { left: 90%; animation-duration: 12s; animation-delay: -2.6s; }
.snowflake:nth-child(19) { left: 95%; animation-duration: 8s; animation-delay: -3.6s; }
.snowflake:nth-child(20) { left: 100%; animation-duration: 15s; animation-delay: -4.6s; }

.hero-section {
  padding: 40px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.terminal {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 40px;
  background: rgba(43, 43, 43, 0.8);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.terminal-header {
  background: rgba(60, 60, 60, 0.8);
  padding: 10px;
  display: flex;
  align-items: center;
}

.terminal-buttons {
  display: flex;
  gap: 6px;
}

.terminal-buttons span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.close { background: #ff5f56; }
.minimize { background: #ffbd2e; }
.maximize { background: #27c93f; }

.terminal-title {
  color: #999;
  font-size: 14px;
  margin-left: 20px;
}

.terminal-body {
  padding: 20px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
}

.command-line {
  margin-bottom: 10px;
}

.prompt {
  color: #00ff00;
}

.command {
  color: #fff;
}

.output-line {
  color: #888;
  margin: 5px 0;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.output-line.success {
  color: #27c93f;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.terminal-body > *:nth-child(1) { animation-delay: 0s; }
.terminal-body > *:nth-child(2) { animation-delay: 1s; }
.terminal-body > *:nth-child(3) { animation-delay: 2s; }
.terminal-body > *:nth-child(4) { animation-delay: 3s; }

.hero-content {
  margin-top: 40px;
}

.title-container {
  position: relative;
  display: inline-block;
}

.main-title,
.main-title-overlay {
  font-size: 4rem;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0;
  font-family: 'Arial Black', sans-serif;
  letter-spacing: 2px;
}

.main-title {
  position: relative;
  color: #fff;
  text-shadow: 
    2px 2px 0px #00fffc,
    -2px -2px 0px #fc00ff;
  animation: titleFloat 3s ease-in-out infinite;
}

.main-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  z-index: -1;
  transform: translate(5px, 5px);
}

@keyframes titleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.subtitle {
  font-size: 1.5rem;
  margin-top: 20px;
  background: linear-gradient(45deg, #00fffc, #fc00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: fadeIn 1s ease forwards 4s;
}

.card-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  padding: 40px 0;
  width: 100%;
}

.app-card {
  width: 25%;
  min-width: 300px;
  max-width: 400px;
  margin: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(20, 20, 20, 0.8);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-card:hover {
  transform: translateY(-10px);
  background: rgba(30, 30, 30, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 0 30px rgba(0, 255, 255, 0.1),
    0 0 60px rgba(0, 255, 255, 0.05);
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

.card-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  position: relative;
}

.heart-icon {
  fill: #ff4b6e;
  filter: drop-shadow(0 0 15px rgba(255, 75, 110, 0.5));
  animation: pulse 2s ease-in-out infinite;
}

.brain-icon {
  fill: #00fffc;
  filter: drop-shadow(0 0 15px rgba(0, 255, 252, 0.5));
  animation: glow 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(0, 255, 252, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(0, 255, 252, 0.8));
  }
}

h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.app-card p {
  color: #aaa;
  font-size: 1.1rem;
  line-height: 1.6;
}

.card-tags {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin: 28px 0 0 0;
}

.card-tag {
  background: linear-gradient(90deg, #409eff 60%, #66e0ff 100%);
  color: #fff;
  border-radius: 20px;
  padding: 10px 32px;
  font-size: 1.08rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(64,158,255,0.13);
  white-space: nowrap;
  letter-spacing: 1px;
  transition: transform 0.2s;
}

.card-tag:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(64,158,255,0.18);
}

@media (max-width: 768px) {
  .terminal {
    max-width: 100%;
  }

  .hero-section {
    padding: 20px;
  }

  .main-title,
  .main-title-overlay {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .card-container {
    padding: 20px;
    flex-direction: column;
    align-items: center;
  }

  .app-card {
    margin: 0 auto;
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  .main-title,
  .main-title-overlay {
    font-size: 2rem;
  }
}

.footer {
  margin-top: auto;
  padding: 40px 20px;
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.footer-content {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  background: linear-gradient(45deg, #00fffc, #fc00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(0, 255, 252, 0.3);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-link:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.social-link {
  color: #aaa;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: #fff;
  transform: translateY(-3px);
}

.footer-copyright {
  text-align: center;
  color: #666;
  font-size: 0.8rem;
}

.footer-copyright p {
  margin: 5px 0;
}

@media (max-width: 768px) {
  .footer {
    padding: 30px 15px;
  }

  .footer-content {
    gap: 20px;
  }

  .footer-links {
    gap: 15px;
  }

  .footer-link {
    font-size: 0.8rem;
  }

  .social-link {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .footer-logo-text {
    font-size: 1.2rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

.home-header {
  text-align: center;
  margin-top: 32px;
  margin-bottom: 12px;
}
.home-slogan {
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(90deg, #409eff 60%, #00f3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.home-subtitle {
  font-size: 1.2rem;
  color: #b3e5ff;
  margin-bottom: 0;
}
.hero-guide {
  font-size: 1.3rem;
  color: #66e0ff;
  margin-bottom: 32px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 1px;
}
.card-btn {
  margin-top: 28px;
  background: linear-gradient(90deg, #409eff 60%, #00f3ff 100%);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 36px;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(64,158,255,0.13);
  transition: background 0.2s, transform 0.2s;
}
.card-btn:hover {
  background: linear-gradient(90deg, #00f3ff 60%, #409eff 100%);
  transform: translateY(-2px) scale(1.04);
}
.footer-contact {
  color: #66e0ff;
  font-size: 1rem;
  margin-bottom: 10px;
}
.footer-contact a {
  color: #409eff;
  text-decoration: underline;
}
</style> 